FROM python:3.10-slim

WORKDIR /app

RUN apt-get update && apt-get install -y git && \
    rm -rf /var/lib/apt/lists/*

# 克隆代理池项目
RUN git clone https://github.com/jhao104/proxy_pool.git .

# 安装依赖
RUN pip install --no-cache-dir -r requirements.txt

# 配置代理池
COPY docker/proxy-pool-conf.py /app/setting.py

EXPOSE 5010

CMD ["python", "proxyPool.py"] 